-- GENERATED SPELL FOR [Brumeran] --


function spell0_10807(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_10807', 516, 1)
end

function spell1_10807(pUnit, Event) --@Lightning Breath,n/a--
pUnit:FullCastSpellOnTarget(15797,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10807', 2000, 1)
end

function spell2_10807(pUnit, Event) --@Venom Spit,n/a--
pUnit:FullCastSpellOnTarget(16552,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10807', 12500, 1)
end

function Sorts_10807(pUnit, Event)
local choix_sorts_10807 = math.random(0, 2)
if choix_sorts_10807 == 0 then
pUnit:RegisterEvent('spell0_10807', 1, 1)
end
if choix_sorts_10807 == 1 then
pUnit:RegisterEvent('spell1_10807', 1, 1)
end
if choix_sorts_10807 == 2 then
pUnit:RegisterEvent('spell2_10807', 1, 1)
end
end

function mob10807_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10807', math.random(1500, 3000), 1)
end

function mob10807_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10807_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10807_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10807, 1, 'mob10807_Action')
RegisterUnitEvent(10807, 2, 'mob10807_Leave')
RegisterUnitEvent(10807, 3, 'mob10807_Kill')
RegisterUnitEvent(10807, 4, 'mob10807_Die')
